package com.ruoyi.project.system.goodsteam.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 拼团商品列表对象 goods_team
 * 
 * @author f_baisi
 * @date 2021-03-02
 */
public class GoodsTeam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 拼团商品列表ID */
    private String id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品副标题 */
    @Excel(name = "商品副标题")
    private String title;

    /** 主图访问路径 */
    @Excel(name = "主图访问路径")
    private String mainUrl;

    /** 主图真实路径 */
    @Excel(name = "主图真实路径")
    private String mainUrlReal;

    /** 默认邮费 */
    @Excel(name = "默认邮费")
    private BigDecimal postFee;

    /** 销量 */
    @Excel(name = "销量")
    private Long monthlySales;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 规格详情 */
    @Excel(name = "规格详情")
    private String spec;

    /** 参数详情 */
    @Excel(name = "参数详情")
    private String param;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal price;

    /** 拼团价 */
    @Excel(name = "拼团价")
    private BigDecimal priceT;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 拼团开始时间 */
    @Excel(name = "拼团开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date groupStart;

    /** 拼团结束时间 */
    @Excel(name = "拼团结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date groupEnd;

    /** 拼团人数 */
    @Excel(name = "拼团人数")
    private Integer number;

    /** 状态 0 上架 1 下架 */
    @Excel(name = "状态 0 上架 1 下架")
    private Integer status;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 删除标记(0-正常,1-删除) */
    private Integer delFlag;

    /** 规格id（暂时不用） */
    @Excel(name = "规格id", readConverterExp = "暂=时不用")
    private String productId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setMainUrl(String mainUrl) 
    {
        this.mainUrl = mainUrl;
    }

    public String getMainUrl() 
    {
        return mainUrl;
    }
    public void setMainUrlReal(String mainUrlReal) 
    {
        this.mainUrlReal = mainUrlReal;
    }

    public String getMainUrlReal() 
    {
        return mainUrlReal;
    }
    public void setPostFee(BigDecimal postFee)
    {
        this.postFee = postFee;
    }

    public BigDecimal getPostFee()
    {
        return postFee;
    }
    public void setMonthlySales(Long monthlySales) 
    {
        this.monthlySales = monthlySales;
    }

    public Long getMonthlySales() 
    {
        return monthlySales;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }
    public void setParam(String param) 
    {
        this.param = param;
    }

    public String getParam() 
    {
        return param;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setPriceT(BigDecimal priceT)
    {
        this.priceT = priceT;
    }

    public BigDecimal getPriceT()
    {
        return priceT;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }
    public void setGroupStart(Date groupStart) 
    {
        this.groupStart = groupStart;
    }

    public Date getGroupStart() 
    {
        return groupStart;
    }
    public void setGroupEnd(Date groupEnd) 
    {
        this.groupEnd = groupEnd;
    }

    public Date getGroupEnd() 
    {
        return groupEnd;
    }
    public void setNumber(Integer number) 
    {
        this.number = number;
    }

    public Integer getNumber() 
    {
        return number;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("title", getTitle())
            .append("mainUrl", getMainUrl())
            .append("mainUrlReal", getMainUrlReal())
            .append("postFee", getPostFee())
            .append("monthlySales", getMonthlySales())
            .append("stock", getStock())
            .append("spec", getSpec())
            .append("param", getParam())
            .append("price", getPrice())
            .append("priceT", getPriceT())
            .append("createAt", getCreateAt())
            .append("groupStart", getGroupStart())
            .append("groupEnd", getGroupEnd())
            .append("number", getNumber())
            .append("status", getStatus())
            .append("sort", getSort())
            .append("delFlag", getDelFlag())
            .append("productId", getProductId())
            .toString();
    }
}
